<?php
/**
 * User object
 */

class User extends Psa_User {
		
	public function __construct($user_id_or_username, array $table_columns = array('id', 'username', 'is_admin', 'last_activity', 'full_name', 'phone_number')){
		
		parent::__construct($user_id_or_username, $table_columns);

	}
	
	
	public function save_last_activity_time(){
			
		$sql = "UPDATE psa_user SET last_activity = NOW() WHERE username = ?";
		$this->psa_registry->psa_database->execute(array($this->username),$this->psa_registry->psa_database->prepare($sql));
	
		return 1;
	}
	
	
	
	
}
